package com.bolt.core.view.tag;

import com.bolt.common.utils.SpringContextUtil;
import com.bolt.core.view.components.ComponentsBase;
import com.bolt.core.view.components.FormItem;

/**
 * Created by Administrator on 2018/3/23.
 */
public class AnyFormItemTag extends InputTag {

    private String type;

    @Override
    public ComponentsBase getUI() {
        FormItem item = new FormItem();
        item.setType(type);
        SpringContextUtil.inject(item);
        return item;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
